package com.heima.zuoye.day07.timu7;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class Demo1 {
    public static void main(String[] args) {
        Map<Integer, Student> map = new HashMap<>();
        ArrayList<Map<Integer, Student>> list = new ArrayList<>();
        map.put(1, new Student(1, "张三", 85.5));
        map.put(2, new Student(2, "李四", 80.5));
        map.put(3, new Student(3, "王五", 65.5));
        Map<Integer, Student> map2 = new HashMap<>();
        map2.put(10, new Student(10, "蜘蛛精", 69.8));
        map2.put(11, new Student(11, "紫霞", 65.8));
        map2.put(12, new Student(12, "至尊宝", 69.5));
        map2.put(13, new Student(13, "牛魔王", 183.6));
        list.add(map);
        list.add(map2);
        list.forEach(s -> System.out.println(s));
    }
}
